package com.tqyan.start.cfg;

import org.springframework.context.annotation.Configuration;

/**
 * @description API配置
 * <p>
 *     http://localhost:8080/swagger-ui.html#/
 * </p>
 *
 * @author 陈晨
 * @date 2023/4/12 01:57
 */
@Configuration
//@EnableSwagger2
public class ApiConfig {

//    @Bean
//    public Docket createRestApi() {
//        return new Docket(DocumentationType.SWAGGER_2)
//            .apiInfo(this.apiInfo())
//            .select()
//            .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
//            .paths(PathSelectors.any())
//            .build();
//    }
//
//    private ApiInfo apiInfo() {
//        return new ApiInfoBuilder()
//            .title("API")
//            .description("API文档")
//            .version("1.0")
//            .build();
//    }

}


